import qbs

Project {
    name : "utils"
    StaticLibrary{
        Depends { name: "Qt"; submodules: [ "core"]}
        Depends { name: "cpp"}

        targetName : {
            if(qbs.buildVariant == "debug")
                return "utilsd"
            else
                return "utils"
        }

        files:[
            "include/*.hpp",
            "src/*.cpp"
        ]

        cpp.includePaths : {
            var inc = base.concat(["./include"])
            return inc
        }
        cpp.cxxFlags:{
            var flags = base
            if(cpp.compilerName.contains("g++"))
                flags = flags.concat(["-std=gnu++11"])
            return flags
        }
    }
}
